package com.zuihai.app.mvp.model.entity;

import com.google.gson.annotations.SerializedName;
import com.zuihai.app.mvp.model.api.Api;

/**
 * Created by Administrator on 2017/7/6 0006.
 */

public class CheckUpdataResponse {

    public String code;
    public String msg;
    public CheckData data;

    public static class CheckData{
        @SerializedName("version")
        public String version;
        @SerializedName("description")
        public String description;
        @SerializedName("download_url")
        public String downloadUrl;
    }

    /**
     * 请求是否成功
     *
     * @return
     */
    public boolean isSuccess() {
        if (code.equals(Api.RequestSuccess)) {
            return true;
        } else {
            return false;
        }
    }
}
